from enum import Enum


class VIP(Enum):
    YELLOW = 1
    GREEN = 2
    BLACK = 3
    RED = 4


# print(VIP.GREEN.name)
# print(VIP.GREEN.value)
# print(VIP['YELLOW'])
# print(VIP['YELLOW'].name)

for enum in VIP:
    print(enum.name, enum.value)
